extends Timer
@onready var timer = $"."
@onready var time = $"../time"
var now_time:int = 0
var total_time:int = 30

func timer_start():
	now_time = total_time
	timer.start()

# Called when the node enters the scene tree for the first time.
func _ready():
	timer_start()
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass


func _on_timeout():
	now_time -= 1
	time.text = str(now_time)
	timer.start()
	pass # Replace with function body.
